import request from '@/utils/request'

export function getList() {
  return request({
    url: '/project/list',
    method: 'get'
  })
}

export function addProject(data) {
  return request({
    url: '/project/add',
    method: 'post',
    data
  })
}

export function getListCondition(data) {
  return request({
    url: '/project/list/condition',
    method: 'post',
    data
  })
}

export function updateProject(data) {
  return request({
    url: '/project/update',
    method: 'put',
    data
  })
}

export function deleteProject(project_id) {
  return request({
    url: '/project/delete/' + project_id,
    method: 'delete'
  })
}
